import os

project_dir = os.path.dirname(os.path.abspath(__file__))
project_parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# upload_folder = os.path.join(project_parent_dir, "upload")
# file_system_dir = os.path.join(project_parent_dir, "file_system")
# temp_dir = os.path.join(project_parent_dir, "temp")
# task_dir = os.path.join(project_parent_dir, "task")
#
# # 确保存储目录存在
# os.makedirs(upload_folder, exist_ok=True)
# os.makedirs(file_system_dir, exist_ok=True)
# os.makedirs(temp_dir, exist_ok=True)
# os.makedirs(task_dir, exist_ok=True)


def path(*p):
    return os.path.join(project_dir, *p)
